<!DOCTYPE HTML>
<html lang="zh-CN">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="manjaro安装和配置, Max|Blog">
    <meta name="description" content="life is a fucking movie">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>manjaro安装和配置 | Max|Blog</title>
    <link rel="icon" type="image/png" href="/favicon.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>

<meta name="generator" content="Hexo 5.3.0"><link rel="alternate" href="/atom.xml" title="Max|Blog" type="application/atom+xml">
</head>




<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/logo.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">Max|Blog</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>首页</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/tags" class="waves-effect waves-light">
      
      <i class="fas fa-tags" style="zoom: 0.6;"></i>
      
      <span>标签</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/categories" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>分类</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/archives" class="waves-effect waves-light">
      
      <i class="fas fa-archive" style="zoom: 0.6;"></i>
      
      <span>归档</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/about" class="waves-effect waves-light">
      
      <i class="fas fa-user-circle" style="zoom: 0.6;"></i>
      
      <span>关于</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/contact" class="waves-effect waves-light">
      
      <i class="fas fa-comments" style="zoom: 0.6;"></i>
      
      <span>留言板</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/friends" class="waves-effect waves-light">
      
      <i class="fas fa-address-book" style="zoom: 0.6;"></i>
      
      <span>友情链接</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>


<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">Max|Blog</div>
        <div class="logo-desc">
            
            life is a fucking movie
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/tags" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-tags"></i>
			
			标签
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			分类
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			归档
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/about" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-user-circle"></i>
			
			关于
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/contact" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-comments"></i>
			
			留言板
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/friends" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-address-book"></i>
			
			友情链接
		</a>
          
        </li>
        
        
        <li><div class="divider"></div></li>
        <li>
            <a href="https://github.com/zhy2021/zhy2021.github.io" class="waves-effect waves-light" target="_blank">
                <i class="fab fa-github-square fa-fw"></i>Fork Me
            </a>
        </li>
        
    </ul>
</div>


        </div>

        
            <style>
    .nav-transparent .github-corner {
        display: none !important;
    }

    .github-corner {
        position: absolute;
        z-index: 10;
        top: 0;
        right: 0;
        border: 0;
        transform: scale(1.1);
    }

    .github-corner svg {
        color: #0f9d58;
        fill: #fff;
        height: 64px;
        width: 64px;
    }

    .github-corner:hover .octo-arm {
        animation: a 0.56s ease-in-out;
    }

    .github-corner .octo-arm {
        animation: none;
    }

    @keyframes a {
        0%,
        to {
            transform: rotate(0);
        }
        20%,
        60% {
            transform: rotate(-25deg);
        }
        40%,
        80% {
            transform: rotate(10deg);
        }
    }
</style>

<a href="https://github.com/zhy2021/zhy2021.github.io" class="github-corner tooltipped hide-on-med-and-down" target="_blank"
   data-tooltip="Fork Me" data-position="left" data-delay="50">
    <svg viewBox="0 0 250 250" aria-hidden="true">
        <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
        <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
              fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
        <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
              fill="currentColor" class="octo-body"></path>
    </svg>
</a>
        
    </nav>

</header>

    



<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/featureimages/5.jpg')">
    <div class="container" style="right: 0px;left: 0px;">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <h1 class="description center-align post-title">manjaro安装和配置</h1>
                </div>
            </div>
        </div>
    </div>
</div>




<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        width: 345px;
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        padding: 35px 0 15px 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content {
        padding-bottom: 30px;
        overflow: auto;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;

        position: absolute;
        right: 23.5vw;
        display: block;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px;
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                    <div class="article-tag">
                        
                            <a href="/tags/linux/">
                                <span class="chip bg-color">linux</span>
                            </a>
                        
                            <a href="/tags/manjaro/">
                                <span class="chip bg-color">manjaro</span>
                            </a>
                        
                    </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                    <div class="post-cate">
                        <i class="fas fa-bookmark fa-fw icon-category"></i>
                        
                            <a href="/categories/manjaro/" class="post-category">
                                manjaro
                            </a>
                        
                    </div>
                    
                </div>
            </div>

            <div class="post-info">
                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-minus fa-fw"></i>发布日期:&nbsp;&nbsp;
                    2021-01-14
                </div>
                

                

                
                <div class="info-break-policy">
                    <i class="far fa-file-word fa-fw"></i>文章字数:&nbsp;&nbsp;
                    3.2k
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-clock fa-fw"></i>阅读时长:&nbsp;&nbsp;
                    12 分
                </div>
                

                
                    <div id="busuanzi_container_page_pv" class="info-break-policy">
                        <i class="far fa-eye fa-fw"></i>阅读次数:&nbsp;&nbsp;
                        <span id="busuanzi_value_page_pv"></span>
                    </div>
				
            </div>
        </div>
        <hr class="clearfix">

        
        <!-- 是否加载使用自带的 prismjs. -->
        <link rel="stylesheet" href="/libs/prism/prism.css">
        

        

        <div class="card-content article-card-content">
            <div id="articleContent">
                <h1 id="manjaro安装和基础配置"><a href="#manjaro安装和基础配置" class="headerlink" title="manjaro安装和基础配置"></a>manjaro安装和基础配置</h1><blockquote>
<p>持续更新  最近更新时间：<strong>2021.02.26</strong></p>
</blockquote>
<h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><h3 id="准备："><a href="#准备：" class="headerlink" title="准备："></a>准备：</h3><ul>
<li><p>u盘，不小于4g</p>
</li>
<li><p>iso镜像 👉 <a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/m/ma/manjaro/">清华大学开源镜像站</a>，选择对应版本（我是kde）</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104133934602.png" alt="image-20210104133934602"></p>
</li>
<li><p><a target="_blank" rel="noopener" href="http://rufus.ie/">Rufus</a>，光盘刻录工具(windows)</p>
</li>
<li><p>etcher (linux)</p>
</li>
</ul>
<h3 id="制作启动盘"><a href="#制作启动盘" class="headerlink" title="制作启动盘"></a>制作启动盘</h3><p>进入Rufus，选择刚刚下好的.iso文件，其他基本是默认，点击确定，会提示是否清空，确定即可开始烧写。这个过程比较长，等进度条跑完了提示完成就退出即可。（一定要小心，别再点一次，会出问题）</p>
<h3 id="利用U盘启动"><a href="#利用U盘启动" class="headerlink" title="利用U盘启动"></a>利用U盘启动</h3><p>我的电脑是戴尔的，插入u盘，关机后按F12，即可进入BIOS，选择U盘启动。</p>
<p><strong>问题</strong></p>
<ul>
<li>有的人找不到U盘启动选项，去bios设置U盘的优先级UEFI启动，具体根据机型百度即可</li>
<li>有的人使用u盘启动进不去，要在bios中关闭 security boot</li>
</ul>
<h3 id="进入pre-install界面"><a href="#进入pre-install界面" class="headerlink" title="进入pre-install界面"></a>进入pre-install界面</h3><p>首先是这个界面（<strong>图是我偷的</strong>，原文链接<a target="_blank" rel="noopener" href="https://linuxacme.icu/?p=99">在这</a>），<code>lang</code>可以配置中文，也可以进入里面的界面再设置，driver设置驱动，如果是n卡选择nofree，会自动给一个显卡驱动的配置方式，也可以安装完成后再配置。然后进入系统安装</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104135559089.png" alt="image-20210104135559089"></p>
<h3 id="真正的安装"><a href="#真正的安装" class="headerlink" title="真正的安装"></a>真正的安装</h3><p>点击桌面的install Manjaro进入可视化安装界面（<strong>安装一定断网，否则最后会卡在93%！！！！！！！！！！！！！！！！</strong>）</p>
<p>这时候就会在欢迎页面卡一小会儿，提示你未连接网络，我们不管他，继续安装。</p>
<p>设置好时区为shanghai，键盘习惯等等，进入<strong>分区页面</strong>。</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104140332046.png"></p>
<blockquote>
<p>我这里是直接取代win10了，有的童鞋可能会装双系统，可以查看网上的教程</p>
<p>配置：</p>
<ul>
<li>戴尔G3老版<ul>
<li>cpu i5-8300H</li>
<li>显卡 gtx1050ti</li>
<li>内存 8+8</li>
<li>硬盘 128固态+1T机械</li>
</ul>
</li>
</ul>
</blockquote>
<p>在这个界面直接点删除，就能把原来的Windows分区删除了。这里给两个分区方案</p>
<p><strong>纯固态</strong></p>
<p>256G的可以这么分：</p>
<table>
<thead>
<tr>
<th align="center">挂载点</th>
<th align="center">文件系统</th>
<th align="center">大小</th>
<th align="center">标记</th>
</tr>
</thead>
<tbody><tr>
<td align="center">/boot/efi</td>
<td align="center">FAT32</td>
<td align="center">300M足够了</td>
<td align="center">/boot（新版的只需勾选这个，旧版的可能还有esp）</td>
</tr>
<tr>
<td align="center">/opt</td>
<td align="center">ext4</td>
<td align="center">30G（这个区域可以不分，直接归根目录中）</td>
<td align="center">无</td>
</tr>
<tr>
<td align="center">/</td>
<td align="center">ext4</td>
<td align="center">30G</td>
<td align="center">无</td>
</tr>
<tr>
<td align="center">/swap</td>
<td align="center">linuxswap</td>
<td align="center">跟你的内存有关如果是8g内存这里就是8g，如果是16g就是16g</td>
<td align="center">无</td>
</tr>
<tr>
<td align="center">无</td>
<td align="center">无</td>
<td align="center">8G（空8个G作为补充？？）</td>
<td align="center">无</td>
</tr>
<tr>
<td align="center">/home</td>
<td align="center">ext4</td>
<td align="center">剩下的全部</td>
<td align="center">无</td>
</tr>
</tbody></table>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104140717701.png" alt="图是我偷的"></p>
<p>512G的看着弄就行了，嫌麻烦可以不用单独分出opt和usr等区，直接放根目录中就行</p>
<p><strong>固态+机械</strong></p>
<p>manjaro的这里可以切换硬盘</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104141738254.png" alt="image-20210104141738254"></p>
<p>分区策略是：</p>
<pre class="line-numbers language-sh" data-language="sh"><code class="language-sh">SSD硬盘：
&#x2F;boot&#x2F;efi 300M
swaplinux 8G（根据你的内存定）
空一些空间出来，跟上边的图一样
&#x2F;    剩下的全部

HHD硬盘：
&#x2F;home   自己看着设吧，推荐100G以上<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>至此，，，，，</p>
<p>点击下一步，输入一些信息，选择no office 因为我们要用wps，，一直到最后点击安装即可。</p>
<p><strong>再次提醒，安装一定要断网，否则会卡在93%，卡一天</strong></p>
<hr>
<h2 id="基础配置"><a href="#基础配置" class="headerlink" title="基础配置"></a>基础配置</h2><p><strong>这里先提供一些基本的指令用来理解</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token comment"># 安装xxx</span>
pacman -S  xxx   

<span class="token comment"># 删除XXXXX（保留依赖的包）</span>
pacman -R XXXXX

<span class="token comment"># 删除XXXXX以及其依赖的包</span>
pacman -Rs XXXXX

<span class="token comment">#  安装自己下载的XXXXX包或者转换过的deb</span>
pacman -U XXXXX

<span class="token comment"># 清理未安装的包文件</span>
pacman -Sc
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>详细的指令可以查看<a target="_blank" rel="noopener" href="https://www.cnblogs.com/msvc/p/11298188.html">这里</a></p>
<hr>
<h3 id="配置源"><a href="#配置源" class="headerlink" title="配置源"></a>配置源</h3><h4 id="pacman"><a href="#pacman" class="headerlink" title="pacman"></a>pacman</h4><blockquote>
<p>pacman是manjaro的库管理软件，国外源太慢且不稳定，所以要切换为国内源</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman-mirrors -i -c China -m rank<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>这是对国内镜像源测速并排序，在弹出的窗口中选择一个或多个，多个的情况是如果第一个连接超时就会去访问第二个</p>
<h4 id="添加AUR的源"><a href="#添加AUR的源" class="headerlink" title="添加AUR的源"></a>添加AUR的源</h4><p>Manjaro是archLinux的衍生系，可以使用Arch丰富的AUR库，官网是<a target="_blank" rel="noopener" href="https://aur.archlinux.org/">这个</a></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> <span class="token function">vim</span> /etc/pacman.conf<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>如果提示vim不存在，我们先下载vim</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Sy <span class="token function">vim</span>
<span class="token comment"># 这里的 -S表示下载，y表示更新源，保证你下载的是最新的，其实 -S也可以下载</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<p>再次输入上面的指令，打开pacman.conf后，在末尾添加如下内容</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token punctuation">[</span>archlinuxcn<span class="token punctuation">]</span>
SigLevel <span class="token operator">=</span> Optional TrustedOnly
Server <span class="token operator">=</span> https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/<span class="token variable">$arch</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>
<p>安装密钥</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -S archlinuxcn-keyring antergos-keyring<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>更新软件列表</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Syu<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<hr>
<h4 id="下载并配置yay"><a href="#下载并配置yay" class="headerlink" title="下载并配置yay"></a>下载并配置yay</h4><blockquote>
<p> yay是优秀的AUR包管理工具，可以用来代替pacman，而且yay的语法跟pacman一模一样</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Sy yay<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>配置镜像 (推荐清华镜像<a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/help/AUR/">网站</a>)</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay --aururl <span class="token string">"https://aur.tuna.tsinghua.edu.cn"</span> --save<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>修改的配置文件位于 <code>~/.config/yay/config.json</code> ，还可通过以下命令查看修改过的配置：</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -P -g<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<hr>
<h3 id="常用软件安装"><a href="#常用软件安装" class="headerlink" title="常用软件安装"></a>常用软件安装</h3><h4 id="输入法安装"><a href="#输入法安装" class="headerlink" title="输入法安装"></a>输入法安装</h4><p>这里我们安装fcitx输入法，主要是搜狗输入法不太好用，如果是gnome桌面环境，请选择ibus</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -S fcitx-im fcitx-configtool pacaur yay fcitx-libpinyin<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>修改配置文件使fcitx输入法生效</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> <span class="token function">sed</span> -i <span class="token string">'<span class="token variable">$a</span><span class="token entity" title="\e">\e</span>xport GTK_IM_MODULE=fcitx<span class="token entity" title="\n">\n</span>export QT_IM_MODULE=fcitx<span class="token entity" title="\n">\n</span>export XMODIFIERS="@im=fcitx"'</span>  /etc/environment<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>使用<code>cat /etc/environment</code>查看</p>
<p>然后请注销或者重启，就能生效了。</p>
<p>ctrl+space可以切换输入法</p>
<p>如果配置输入法请输入这个指令，或者去桌面找小图标右击它</p>
<pre class="line-numbers language-sh" data-language="sh"><code class="language-sh">fcitx-config-gtk3<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h4 id="tim"><a href="#tim" class="headerlink" title="tim"></a>tim</h4><p>在archLinux官网搜qq，现在tim叫qq.tim.spark，是基于wine5的</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104145444472.png" alt="image-20210104145444472"></p>
<p>下载输入：</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy com.qq.tim.spark<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>一直回车就行了，，耐心等待安装完成即可</p>
<p><strong>微信，qq同理</strong></p>
<hr>
<h4 id="网易云"><a href="#网易云" class="headerlink" title="网易云"></a>网易云</h4><pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy netease-cloud-music  <span class="token comment">###具体是不是这个命令我忘了，，去官网可以查看</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><strong>解决网易云搜索不能用中文的问题</strong></p>
<p>????</p>
<h4 id="typora"><a href="#typora" class="headerlink" title="typora"></a>typora</h4><pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy typora<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>


<h4 id="xdm"><a href="#xdm" class="headerlink" title="xdm"></a>xdm</h4><blockquote>
<p>xdm是类似于idm的多线程下载器，可以用更快的速度下载软件~</p>
<p><a target="_blank" rel="noopener" href="https://subhra74.github.io/xdm/">官网在此</a></p>
</blockquote>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104152100305.png" alt="image-20210104152100305"></p>
<p>点击下载即可，是tar.gz格式的</p>
<p>下载完成后解压缩并安装</p>
<h4 id="flameshot"><a href="#flameshot" class="headerlink" title="flameshot"></a>flameshot</h4><blockquote>
<p>Linux下好用的截图软件 falmeshot，跟Windows下的 Snipaste 有过而无不及</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Sy flameshot<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>flameshot又叫火焰截图，我们下载好以后，启动应用，左下角就会出现图标</p>
<p><strong>设置快捷键</strong></p>
<p>系统设置==》快捷键==》自定义快捷键==》编辑==》新建==》全局快捷键==》命令/URL</p>
<p>设置动作为 <code>flameshot gui</code></p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/image-20210109232237012.png" alt="image-20210109225955035"></p>
<p>设置触发器（快捷建），保存即可</p>
<hr>
<h4 id="wps"><a href="#wps" class="headerlink" title="wps"></a>wps</h4><p>archlinux上的wps下载下来的是英文的，所以我直接去官网下载的wps for linux —-&gt; <a target="_blank" rel="noopener" href="https://www.wps.cn/product/wpslinux">官网</a></p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/image-20210104152220686.png" alt="image-20210104152220686"></p>
<p>这时候我们用xdm下载速度会快一点~</p>
<p>我们这时候下载的是deb包，在archlinux中需要进行转换，我们需要<code>debtap</code>来帮助我们</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy debtap

<span class="token comment">## 更换中国源</span>
<span class="token comment">#替换：</span>
http://ftp.debian.org/debian/dists
https://mirrors.ustc.edu.cn/debian/dists

<span class="token comment">#替换：</span>
http://archive.ubuntu.com/ubuntu/dists
https://mirrors.ustc.edu.cn/ubuntu/dists/

<span class="token comment">#执行升级</span>
<span class="token function">sudo</span> debtap -u

<span class="token comment">#升级完成后使用该指令安装，安装时会提示输入包名，以及license。包名随意，license填GPL 上述操作完成后会在deb包同级目录生成xxx.tar.xz文件</span>
<span class="token function">sudo</span> debtap xxx.deb

<span class="token comment"># 安装完成后，执行</span>
<span class="token function">sudo</span> pacman -U xxx.tar.xz<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>


<h4 id="ss"><a href="#ss" class="headerlink" title="ss"></a>ss</h4><p>manjaro官方有一个shadowsocks-qt5，下载以后填写相应的配置，即可使用。不过是默认对1080端口开放代理权限。</p>
<p>如果是在终端中上网</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -S proxychains-ng

<span class="token function">sudo</span> <span class="token function">vim</span> /etc/proxychains.conf<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>
<p>文件末尾修改为，或者添加为：</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">socks5 <span class="token number">127.0</span>.0.1 <span class="token number">1080</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>然后，大多数的终端软件就可以上网了，例如：</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">proxychains <span class="token function">curl</span> www.google.com<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/image-20210109230138403.png"></p>
<p><strong>配置全局代理</strong></p>
<p>特别简单：</p>
<ol>
<li>安装polipo</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Sy polipo<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="2">
<li>设置</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> <span class="token function">cp</span> /etc/polipo/config.sample /etc/polipo/config
<span class="token function">sudo</span> <span class="token function">vim</span> /etc/polipo/config<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<ol start="3">
<li>修改</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">proxyAddress <span class="token operator">=</span> <span class="token string">"0.0.0.0"</span>
allowedClients <span class="token operator">=</span> <span class="token number">127.0</span>.0.1
socksParentProxy <span class="token operator">=</span> <span class="token string">"127.0.0.1:1080"</span>
socksProxyType <span class="token operator">=</span> socks5<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code></pre>
<ol start="4">
<li>重启服务，这时候就会在8123端口开一个代理</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> systemctl restart polipo<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="5">
<li>编辑 <code>~/.bashrc</code>或者<code>~/.zshrc</code>，设置全局代理变量，重启窗口</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token builtin class-name">alias</span> <span class="token assign-left variable">proxyon</span><span class="token operator">=</span><span class="token string">'export http_proxy=http://127.0.0.1:8123 https_proxy=http://127.0.0.1:8123'</span>
<span class="token builtin class-name">alias</span> <span class="token assign-left variable">proxyoff</span><span class="token operator">=</span><span class="token string">'unset http_proxy https_proxy'</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<p>终端输入proxyon 就开启了，输入proxyoff 就关闭了</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/image-20210109231914693.png"></p>
<ol start="6">
<li>设置开机自启动</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> systemctl <span class="token builtin class-name">enable</span> polipo.service<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>


<h4 id="oh-my-zsh"><a href="#oh-my-zsh" class="headerlink" title="oh-my-zsh"></a>oh-my-zsh</h4><p>安装zsh，现在最新版本的manjaro已经自带zsh了</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy <span class="token function">zsh</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>


<p>我喜欢用zsh，因为它功能更强大，所以我设置zsh为默认终端shell</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">cat</span> /etc/shells <span class="token comment"># 查看终端有多少种shell</span>

chsh -s /bin/zsh <span class="token comment"># 设置zsh为默认  重启生效</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>


<p>安装oh-my-zsh</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token comment">## 需要一点手段，才能下载（科学上网）</span>
<span class="token function">sh</span> -c <span class="token string">"<span class="token variable"><span class="token variable">$(</span>proxychains <span class="token function">curl</span> -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh<span class="token variable">)</span></span>"</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<p> xxxxx安装主题</p>
<p>参考别的博客</p>
<h4 id="filezilla-强大的FTP工具"><a href="#filezilla-强大的FTP工具" class="headerlink" title="filezilla 强大的FTP工具"></a>filezilla 强大的FTP工具</h4><pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy filezilla<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h4 id="obs"><a href="#obs" class="headerlink" title="obs"></a>obs</h4><blockquote>
<p>直播，录屏软件</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Sy obs-studio<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>


<h3 id="freerdp"><a href="#freerdp" class="headerlink" title="freerdp"></a>freerdp</h3><blockquote>
<p>linux连接windows服务器的一款好用的软件</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy freerdp


<span class="token comment">#安装完成以后，在本地创建一个目录</span>
<span class="token builtin class-name">cd</span> ~
<span class="token function">mkdir</span> shared<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>然后输入这条指令：</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">xfreerdp /f /v:服务器ip /u:服务器用户名 /p:服务器密码 /workarea /sound /drive:shared,/home/你的用户/shared<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>


<h3 id="腾讯会议"><a href="#腾讯会议" class="headerlink" title="腾讯会议"></a>腾讯会议</h3><blockquote>
<p>Deepin在去年发布了Deepin版本的腾讯会议，现在在aur里面也可以使用了</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy com.tencent.meeting.deepin5  <span class="token comment">#运行即可下载安装</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><strong>会出现的问题</strong>：（解决办法参照aur里面 ==&gt;<a target="_blank" rel="noopener" href="https://aur.archlinux.org/packages/com.tencent.meeting.deepin/">点我</a>，我这里简单说一下）</p>
<ul>
<li>如果你的机器安装了simsun.ttc等字体文件，要复制一份到<code>~/.deepinwine/Deepin-TencentMeeting/drive_c/windows/Fonts/</code>下，否则会报错dwrite.dll</li>
<li>如果你的腾讯会议存在字体缺失的情况，你也要下载一份simsun.ttc到上边那个目录里边</li>
<li>如果复制完字体后还是不能进入会议，报错dwrite.dll，那么参考这篇<a target="_blank" rel="noopener" href="https://bbs.deepin.org/post/209769">文章</a>，下载对应的<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1UhChKtyIWwynbLdIpyc-Vw">文件</a>，提取吗nngx，参照下面的做法</li>
</ul>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/20210206112229.png"></p>
<ul>
<li> 如果遇到 GF.dll 的问题，应该改为deepin的wine, 如：<code>env WINEPREFIX=&quot;$HOME/.deepinwine/Deepin-TencentMeeting&quot; /usr/lib/deepin-wine5-stable/bin/winecfg</code>，再设置 函数库顶替dwrite（原装先于内建），要注意<code>deepin-wine5-stable</code>的位置。</li>
</ul>
<p>然后就能运行了～～～～<strong>注意的是：现在还不支持开视频</strong></p>
<h2 id="开发软件安装"><a href="#开发软件安装" class="headerlink" title="开发软件安装"></a>开发软件安装</h2><h3 id="git配置代理"><a href="#git配置代理" class="headerlink" title="git配置代理"></a>git配置代理</h3><pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">git</span> config --global https.proxy socks5:127.0.0.1:1080
<span class="token function">git</span> config --global http.proxy socks5:127.0.0.1:1080

<span class="token function">vim</span> ~/.gitconfig
可以看见<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<h3 id="jdk"><a href="#jdk" class="headerlink" title="jdk"></a>jdk</h3><blockquote>
<p>其他版本的参考即可，详情查找aur库</p>
</blockquote>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy jdk8-openjdk<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h3 id="maven"><a href="#maven" class="headerlink" title="maven"></a>maven</h3><pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy maven<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>剩下的操作就跟windows下的一样了</p>
<h3 id="node-js"><a href="#node-js" class="headerlink" title="node.js"></a>node.js</h3><pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy nodejs<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><strong>安装npm</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy <span class="token function">npm</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><strong>安装yarn</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">npm</span> <span class="token function">install</span> <span class="token function">yarn</span> -g<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>设置npm和yarn源</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">npm</span> config <span class="token builtin class-name">set</span> registry https://registry.npm.taobao.org --global
<span class="token function">npm</span> config <span class="token builtin class-name">set</span> disturl https://npm.taobao.org/dist --global

<span class="token function">yarn</span> config <span class="token builtin class-name">set</span> registry https://registry.npm.taobao.org --global
<span class="token function">yarn</span> config <span class="token builtin class-name">set</span> disturl https://npm.taobao.org/dist --global<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<h3 id="Redis"><a href="#Redis" class="headerlink" title="Redis"></a>Redis</h3><p>redis 作为缓存，在开发中很常见</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy redis<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h3 id="redis-desktop-manager"><a href="#redis-desktop-manager" class="headerlink" title="redis-desktop-manager"></a>redis-desktop-manager</h3><p>linux下的一款redis可视化管理工具</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">yay -Sy redis-desktop-manager<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h3 id="mysql"><a href="#mysql" class="headerlink" title="mysql"></a>mysql</h3><p>mysql 在官方包中有</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> pacman -Sy mysql     Y<span class="token operator"><span class="token file-descriptor important">4</span>></span>%hyP?%AGs<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><strong>初始化mysql</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> mysqld --initialize --user<span class="token operator">=</span>mysql --basedir<span class="token operator">=</span>/usr --datadir<span class="token operator">=</span>/var/lib/mysql<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<blockquote>
<p>可能会报错</p>
<p>mysqld: error while loading shared libraries: <strong>libicuuc.so.68</strong>: cannot open shared object file: No such file or directory</p>
</blockquote>
<p>这里要感谢博主提供的思路：<a target="_blank" rel="noopener" href="https://www.jianshu.com/p/a7f1f2f5c1c5">https://www.jianshu.com/p/a7f1f2f5c1c5</a></p>
<p><strong>解决思路</strong>：</p>
<p>去<a target="_blank" rel="noopener" href="http://site.icu-project.org/home">官网</a>下载libicuuc.so.68的包，执行</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token builtin class-name">cd</span> <span class="token builtin class-name">source</span> 

./configure --prefix<span class="token operator">=</span>/usr          

<span class="token function">make</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>编译完成之后，进入<code>source/lib</code>目录中</p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">cp</span> libicuuc.so.68*  /usr/lib

<span class="token function">cp</span> libicui18n.so.68* /usr/lib

<span class="token function">cp</span> libicudata.so.68* /usr/lib<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p><strong>注意</strong>：只需要拷贝前缀是这几个的就行了，如果版本不一样，修改数字就行比如说： <code>**cp libicuuc.so.64* /usr/lib</code></p>
<p>全部做完之后，再次执行初始化操作，</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/20210113115255.png"></p>
<p><strong>开启mysql服务</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> systemctl start mysqld.service<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><strong>访问并修改密码</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell">mysql -u root -p

alter user <span class="token string">'root'</span>@<span class="token string">'localhost'</span> identified with mysql_native_password by <span class="token string">'密码'</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>
<hr>
<p><strong>mysql 关闭大小写敏感</strong></p>
<ol>
<li>停止MySQL</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> systemctl stop mysqld<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="2">
<li>删除 MySQL的数据（如果以前有数据记得先备份）</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> <span class="token function">rm</span> -rf /var/lib/mysql<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="3">
<li>修改 配置文件</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> <span class="token function">vim</span> /etc/mysql/my.cnf
最后面添加 lower_case_table_names <span class="token operator">=</span> <span class="token number">1</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<ol start="4">
<li>重新初始化密码和数据库（确保/var/lib/mysql不存在）</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> mysqld --initialize --user<span class="token operator">=</span>mysql --basedir<span class="token operator">=</span>/usr --datadir<span class="token operator">=</span>/var/lib/mysql<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="5">
<li>启动服务</li>
</ol>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> systemctl start mysqld<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h3 id="IDEA"><a href="#IDEA" class="headerlink" title="IDEA"></a>IDEA</h3><p>yay下载，不能自主更新，官网下载，能自主更新，但是要自己创建快捷方式</p>
<p>这里讲一下官网下载和安装的方法：</p>
<p>去idea官网，下载idea for linux，是tar.gz格式的，解压就能用</p>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/20210113122751.png"></p>
<p>解压之后，在/bin/目录中，有个<code>idea.sh</code>，是启动文件，idea.png是图片，</p>
<p><strong>这种方式不会自动创建快捷方式，所以我们要自己创建</strong></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token builtin class-name">cd</span> /usr/share/applications   <span class="token comment">#这里面全是快捷方式</span>
<span class="token comment"># 我们随便复制一个快捷方式，作为给idea的，因为这些快捷方式格式都一样，所以哪一个都行</span>
<span class="token function">sudo</span> <span class="token function">cp</span> xdman.desktop idea.desktop<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/20210113123408.png"></p>
<pre class="line-numbers language-shell" data-language="shell"><code class="language-shell"><span class="token function">sudo</span> <span class="token function">vim</span> idea.desktop <span class="token comment">#编辑这个快捷方式</span>
<span class="token comment">#格式如下</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<p><img src="https://gitee.com/zhang_hao_yu123/images/raw/master/img/20210113123834.png"></p>
<p>修改完保存即可。</p>
<p>现在我们就可以在alt+space中看到快捷方式了！！！</p>
<h3 id="Webstorm"><a href="#Webstorm" class="headerlink" title="Webstorm"></a>Webstorm</h3><p>步骤同IDEA</p>
<h3 id="navicat"><a href="#navicat" class="headerlink" title="navicat"></a>navicat</h3><p>安装破解参考：<a target="_blank" rel="noopener" href="https://rlds.tk/">https://rlds.tk/</a></p>
<h2 id="N卡驱动"><a href="#N卡驱动" class="headerlink" title="N卡驱动"></a>N卡驱动</h2><p>参考：<a target="_blank" rel="noopener" href="https://blog.csdn.net/u011250429/article/details/84857676#t3">https://blog.csdn.net/u011250429/article/details/84857676#t3</a></p>
<h2 id="其他问题"><a href="#其他问题" class="headerlink" title="其他问题"></a>其他问题</h2><p>待补充。。。</p>

                
            </div>
            <hr/>

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-user">
                        文章作者:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="/about" rel="external nofollow noreferrer">Max</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-link">
                        文章链接:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://zhy2021.github.io/2021/01/14/manjaro-an-zhuang-he-pei-zhi/">https://zhy2021.github.io/2021/01/14/manjaro-an-zhuang-he-pei-zhi/</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-copyright">
                        版权声明:
                    </i>
                </span>
                <span class="reprint-info">
                    本博客所有文章除特別声明外，均采用
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    许可协议。转载请注明来源
                    <a href="/about" target="_blank">Max</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>复制成功，请遵循本文的转载规则</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">查看</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            
                                <a href="/tags/linux/">
                                    <span class="chip bg-color">linux</span>
                                </a>
                            
                                <a href="/tags/manjaro/">
                                    <span class="chip bg-color">manjaro</span>
                                </a>
                            
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">
<div id="article-share">

    
    <div class="social-share" data-sites="twitter,facebook,google,qq,qzone,wechat,weibo,douban,linkedin" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
            
        </div>
    </div>

    

    

    

    

    
        <style>
    .valine-card {
        margin: 1.5rem auto;
    }

    .valine-card .card-content {
        padding: 20px 20px 5px 20px;
    }

    #vcomments textarea {
        box-sizing: border-box;
        background: url("/medias/comment_bg.png") 100% 100% no-repeat;
    }

    #vcomments p {
        margin: 2px 2px 10px;
        font-size: 1.05rem;
        line-height: 1.78rem;
    }

    #vcomments blockquote p {
        text-indent: 0.2rem;
    }

    #vcomments a {
        padding: 0 2px;
        color: #4cbf30;
        font-weight: 500;
        text-decoration: none;
    }

    #vcomments img {
        max-width: 100%;
        height: auto;
        cursor: pointer;
    }

    #vcomments ol li {
        list-style-type: decimal;
    }

    #vcomments ol,
    ul {
        display: block;
        padding-left: 2em;
        word-spacing: 0.05rem;
    }

    #vcomments ul li,
    ol li {
        display: list-item;
        line-height: 1.8rem;
        font-size: 1rem;
    }

    #vcomments ul li {
        list-style-type: disc;
    }

    #vcomments ul ul li {
        list-style-type: circle;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    #vcomments table, th, td {
        border: 0;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments h1 {
        font-size: 1.85rem;
        font-weight: bold;
        line-height: 2.2rem;
    }

    #vcomments h2 {
        font-size: 1.65rem;
        font-weight: bold;
        line-height: 1.9rem;
    }

    #vcomments h3 {
        font-size: 1.45rem;
        font-weight: bold;
        line-height: 1.7rem;
    }

    #vcomments h4 {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    #vcomments h5 {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.4rem;
    }

    #vcomments h6 {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    #vcomments p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #vcomments hr {
        margin: 12px 0;
        border: 0;
        border-top: 1px solid #ccc;
    }

    #vcomments blockquote {
        margin: 15px 0;
        border-left: 5px solid #42b983;
        padding: 1rem 0.8rem 0.3rem 0.8rem;
        color: #666;
        background-color: rgba(66, 185, 131, .1);
    }

    #vcomments pre {
        font-family: monospace, monospace;
        padding: 1.2em;
        margin: .5em 0;
        background: #272822;
        overflow: auto;
        border-radius: 0.3em;
        tab-size: 4;
    }

    #vcomments code {
        font-family: monospace, monospace;
        padding: 1px 3px;
        font-size: 0.92rem;
        color: #e96900;
        background-color: #f8f8f8;
        border-radius: 2px;
    }

    #vcomments pre code {
        font-family: monospace, monospace;
        padding: 0;
        color: #e8eaf6;
        background-color: #272822;
    }

    #vcomments pre[class*="language-"] {
        padding: 1.2em;
        margin: .5em 0;
    }

    #vcomments code[class*="language-"],
    pre[class*="language-"] {
        color: #e8eaf6;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }

    #vcomments b,
    strong {
        font-weight: bold;
    }

    #vcomments dfn {
        font-style: italic;
    }

    #vcomments small {
        font-size: 85%;
    }

    #vcomments cite {
        font-style: normal;
    }

    #vcomments mark {
        background-color: #fcf8e3;
        padding: .2em;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }
</style>

<div class="card valine-card" data-aos="fade-up">
    <div class="comment_headling" style="font-size: 20px; font-weight: 700; position: relative; padding-left: 20px; top: 15px; padding-bottom: 5px;">
        <i class="fas fa-comments fa-fw" aria-hidden="true"></i>
        <span>评论</span>
    </div>
    <div id="vcomments" class="card-content" style="display: grid">
    </div>
</div>

<script src="/libs/valine/av-min.js"></script>
<script src="/libs/valine/Valine.min.js"></script>
<script>
    new Valine({
        el: '#vcomments',
        appId: '5FkhQebEqGdoNnuL654mv5KM-gzGzoHsz',
        appKey: 'NNEBzCiygD4tBLqHt8diLxda',
        notify: 'true' === 'true',
        verify: 'true' === 'true',
        visitor: 'true' === 'true',
        avatar: 'mm',
        pageSize: '10',
        lang: 'zh-cn',
        placeholder: 'just go go'
    });
</script>

    

    

    

    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="fas fa-chevron-left"></i>&nbsp;上一篇</div>
            <div class="card">
                <a href="/2021/02/14/springcloud-ji-zhu-zhan/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/15.jpg" class="responsive-img" alt="SpringCloud技术栈">
                        
                        <span class="card-title">SpringCloud技术栈</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
                        
                    </div>
                    <div class="publish-info">
                        <span class="publish-date">
                            <i class="far fa-clock fa-fw icon-date"></i>2021-02-14
                        </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            zhy
                            
                        </span>
                    </div>
                </div>
                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                下一篇&nbsp;<i class="fas fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/2020/11/26/rabbitmq-xiao-xi-dui-lie/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/13.jpg" class="responsive-img" alt="RabbitMQ消息队列">
                        
                        <span class="card-title">RabbitMQ消息队列</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-11-26
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            Max
                            
                        </span>
                    </div>
                </div>
                
            </div>
        </div>
        
    </div>
</article>

</div>


<script>
    $('#articleContent').on('copy', function (e) {
        // IE8 or earlier browser is 'undefined'
        if (typeof window.getSelection === 'undefined') return;

        var selection = window.getSelection();
        // if the selection is short let's not annoy our users.
        if (('' + selection).length < Number.parseInt('120')) {
            return;
        }

        // create a div outside of the visible area and fill it with the selected text.
        var bodyElement = document.getElementsByTagName('body')[0];
        var newdiv = document.createElement('div');
        newdiv.style.position = 'absolute';
        newdiv.style.left = '-99999px';
        bodyElement.appendChild(newdiv);
        newdiv.appendChild(selection.getRangeAt(0).cloneContents());

        // we need a <pre> tag workaround.
        // otherwise the text inside "pre" loses all the line breaks!
        if (selection.getRangeAt(0).commonAncestorContainer.nodeName === 'PRE') {
            newdiv.innerHTML = "<pre>" + newdiv.innerHTML + "</pre>";
        }

        var url = document.location.href;
        newdiv.innerHTML += '<br />'
            + '来源: Max|Blog<br />'
            + '文章作者: Max<br />'
            + '文章链接: <a href="' + url + '">' + url + '</a><br />'
            + '本文章著作权归作者所有，任何形式的转载都请注明出处。';

        selection.selectAllChildren(newdiv);
        window.setTimeout(function () {bodyElement.removeChild(newdiv);}, 200);
    });
</script>


<!-- 代码块功能依赖 -->
<script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>

<!-- 代码语言 -->

<script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>


<!-- 代码块复制 -->

<script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>


<!-- 代码块收缩 -->

<script type="text/javascript" src="/libs/codeBlock/codeShrink.js"></script>


    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget card" style="background-color: white;">
            <div class="toc-title"><i class="far fa-list-alt"></i>&nbsp;&nbsp;目录</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <a class="btn-floating btn-large bg-color">
        <i class="fas fa-list-ul"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            collapseDepth: Number('0'),
            headingSelector: 'h2, h3, h4'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h2, h3, h4').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).hide();
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).show();
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>

    

</main>


<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>

    <footer class="page-footer bg-color">
    
        <link rel="stylesheet" href="/libs/aplayer/APlayer.min.css">
<style>
    .aplayer .aplayer-lrc p {
        
        display: none;
        
        font-size: 12px;
        font-weight: 700;
        line-height: 16px !important;
    }

    .aplayer .aplayer-lrc p.aplayer-lrc-current {
        
        display: none;
        
        font-size: 15px;
        color: #42b983;
    }

    
    .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
        left: -66px !important;
    }

    .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
        left: 0px !important;
    }

    
</style>
<div class="">
    
    <div class="row">
        <meting-js class="col l8 offset-l2 m10 offset-m1 s12"
                   server="netease"
                   type="playlist"
                   id="2844914148"
                   fixed='true'
                   autoplay='false'
                   theme='#42b983'
                   loop='all'
                   order='random'
                   preload='auto'
                   volume='0.7'
                   list-folded='true'
        >
        </meting-js>
    </div>
</div>

<script src="/libs/aplayer/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>

    
    <div class="container row center-align" style="margin-bottom: 15px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            
                <span id="year">2020-2021</span>
            
            <span id="year">2020</span>
            <a href="/about" target="_blank">Max</a>
            |&nbsp;Powered by&nbsp;<a href="https://hexo.io/" target="_blank">Hexo</a>
            |&nbsp;Theme&nbsp;<a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
            <br>
            
            &nbsp;<i class="fas fa-chart-area"></i>&nbsp;站点总字数:&nbsp;<span
                class="white-color">141.4k</span>&nbsp;字
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <span id="sitetime">载入运行时间...</span>
            <script>
                function siteTime() {
                    var seconds = 1000;
                    var minutes = seconds * 60;
                    var hours = minutes * 60;
                    var days = hours * 24;
                    var years = days * 365;
                    var today = new Date();
                    var startYear = "2020";
                    var startMonth = "2";
                    var startDate = "13";
                    var startHour = "0";
                    var startMinute = "0";
                    var startSecond = "0";
                    var todayYear = today.getFullYear();
                    var todayMonth = today.getMonth() + 1;
                    var todayDate = today.getDate();
                    var todayHour = today.getHours();
                    var todayMinute = today.getMinutes();
                    var todaySecond = today.getSeconds();
                    var t1 = Date.UTC(startYear, startMonth, startDate, startHour, startMinute, startSecond);
                    var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
                    var diff = t2 - t1;
                    var diffYears = Math.floor(diff / years);
                    var diffDays = Math.floor((diff / days) - diffYears * 365);
                    var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
                    var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) /
                        minutes);
                    var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours -
                        diffMinutes * minutes) / seconds);
                    if (startYear == todayYear) {
                        document.getElementById("year").innerHTML = todayYear;
                        document.getElementById("sitetime").innerHTML = "本站已安全运行 " + diffDays + " 天 " + diffHours +
                            " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
                    } else {
                        document.getElementById("year").innerHTML = startYear + " - " + todayYear;
                        document.getElementById("sitetime").innerHTML = "本站已安全运行 " + diffYears + " 年 " + diffDays +
                            " 天 " + diffHours + " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
                    }
                }
                setInterval(siteTime, 1000);
            </script>
            
            <br>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">
    <a href="https://github.com/blinkfox" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
        <i class="fab fa-github"></i>
    </a>



    <a href="mailto:1181062873@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>







    <a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=1181062873" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 1181062873" data-position="top" data-delay="50">
        <i class="fab fa-qq"></i>
    </a>







    <a href="/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
        <i class="fas fa-rss"></i>
    </a>

</div>
    </div>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script type="text/javascript">
$(function () {
    var searchFunc = function (path, search_id, content_id) {
        'use strict';
        $.ajax({
            url: path,
            dataType: "xml",
            success: function (xmlResponse) {
                // get the contents from search data
                var datas = $("entry", xmlResponse).map(function () {
                    return {
                        title: $("title", this).text(),
                        content: $("content", this).text(),
                        url: $("url", this).text()
                    };
                }).get();
                var $input = document.getElementById(search_id);
                var $resultContent = document.getElementById(content_id);
                $input.addEventListener('input', function () {
                    var str = '<ul class=\"search-result-list\">';
                    var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                    $resultContent.innerHTML = "";
                    if (this.value.trim().length <= 0) {
                        return;
                    }
                    // perform local searching
                    datas.forEach(function (data) {
                        var isMatch = true;
                        var data_title = data.title.trim().toLowerCase();
                        var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                        var data_url = data.url;
                        data_url = data_url.indexOf('/') === 0 ? data.url : '/' + data_url;
                        var index_title = -1;
                        var index_content = -1;
                        var first_occur = -1;
                        // only match artiles with not empty titles and contents
                        if (data_title !== '' && data_content !== '') {
                            keywords.forEach(function (keyword, i) {
                                index_title = data_title.indexOf(keyword);
                                index_content = data_content.indexOf(keyword);
                                if (index_title < 0 && index_content < 0) {
                                    isMatch = false;
                                } else {
                                    if (index_content < 0) {
                                        index_content = 0;
                                    }
                                    if (i === 0) {
                                        first_occur = index_content;
                                    }
                                }
                            });
                        }
                        // show search results
                        if (isMatch) {
                            str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                            var content = data.content.trim().replace(/<[^>]+>/g, "");
                            if (first_occur >= 0) {
                                // cut out 100 characters
                                var start = first_occur - 20;
                                var end = first_occur + 80;
                                if (start < 0) {
                                    start = 0;
                                }
                                if (start === 0) {
                                    end = 100;
                                }
                                if (end > content.length) {
                                    end = content.length;
                                }
                                var match_content = content.substr(start, end);
                                // highlight all keywords
                                keywords.forEach(function (keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    match_content = match_content.replace(regS, "<em class=\"search-keyword\">" + keyword + "</em>");
                                });

                                str += "<p class=\"search-result\">" + match_content + "...</p>"
                            }
                            str += "</li>";
                        }
                    });
                    str += "</ul>";
                    $resultContent.innerHTML = str;
                });
            }
        });
    };

    searchFunc('/search.xml', 'searchInput', 'searchResult');
});
</script>

    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    <!--腾讯兔小巢-->
    
    

    

    

    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
